import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SDrugBagInfo
    
    export  class SDrugBagInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SDrugBagInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.type);
            arg1.writeInt(this.remain);
            arg1.writeDate(this.useDt);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.type = arg1.readInt();
            this.remain = arg1.readInt();
            this.useDt = arg1.readDate();
            return;
        }

        public /* const */_type: int=12060;

        public /* var */type: int;

        public /* var */remain: int;

        public /* var */useDt: Date;

        public static /* var */_regist: SDrugBagInfo;
    }

            SDrugBagInfo._regist = new SDrugBagInfo(true);
        